import java.awt.event.KeyEvent;
import java.awt.event.KeyListener;


public class InputHandler implements KeyListener{

	public boolean goingUp = false, goingDown = false;
	
	public void keyPressed(KeyEvent arg0) 
	{
		int key = arg0.getKeyCode();
		
		if(key == KeyEvent.VK_W)
		{
			goingUp = true;
		}else if(key == KeyEvent.VK_S)
		{
			goingDown = true;
		}
	}

	public void keyReleased(KeyEvent arg0)
	{
		int key = arg0.getKeyCode();
		
		if(key == KeyEvent.VK_W)
		{
			goingUp = false;
		}else if(key == KeyEvent.VK_S)
		{
			goingDown = false;
		}
	}

	public void keyTyped(KeyEvent arg0) 
	{
		
	}
	
}
